

#pragma once
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include <string>
#include <vector>
#include <fstream>
#include <cmath>


class HeightMap
{
	int mNumVertsPerRow;
	int mNumVertsPerCol;
	int mCellSpacing;
	int mNumVertices;
	float mHeightScale;
	float mWidth;
	float mDepth;
	char* mFilename;
	std::vector<int> mHeightMap;
	int GetHeightMapEntry(int row, int col);
	void SetHeightMapEntry(int row, int col, int value);
	

public :
	HeightMap(char* inFilename,int inNumVertsPerRow,int inNumVertsPerCol, int inCellSpacing, float inHeightScale);
	bool ReadFile();
	void Draw();
	~HeightMap();

};